package com.dubbo.hyp.service.impl;

import com.dubbo.hyp.service.HelloService;
import org.apache.dubbo.config.annotation.Service;

@Service
public class HelloServiceImpl implements HelloService {

    public void queryTime1() {
        int time = (int) (Math.random() * 100);
        try {
            Thread.sleep(time);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void queryTime2() {
        int time = (int) (Math.random() * 100);
        try {
            Thread.sleep(time);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


    public void queryTime3() {
        int time = (int) (Math.random() * 100);
        try {
            Thread.sleep(time);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
